<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: Color Mapping</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__colormap.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Color Mapping<div class="ingroups"><a class="el" href="group__util.html">Utilities Library (jetson-utils)</a> &raquo; <a class="el" href="group__cuda.html">CUDA</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Defines various colormaps and color mapping functions.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gab66101108d92e39f9ab9283c31da3550"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550">cudaColormapType</a> { <br />
&#160;&#160;<a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550a66ba231e27e5c047361cd648353536cf">COLORMAP_INFERNO</a>, 
<a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550adae05e96cd50fde7278b54a0bd0430af">COLORMAP_MAGMA</a>, 
<a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550a9d7e019081acf9030ca57169572a2c49">COLORMAP_PARULA</a>, 
<a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550ac6232462decac13bf8f019216088af4e">COLORMAP_PLASMA</a>, 
<br />
&#160;&#160;<a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550adb42f46fa120d9ffaaa7326456b128ec">COLORMAP_TURBO</a>, 
<a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550ab55ee67b1227b4ed30b505eb3a3cbe0c">COLORMAP_VIRIDIS</a>, 
<a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550a9bcf1c7c8aa1713bd6d77dc88eecda51">COLORMAP_FLOW</a>, 
<a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550ab4b116ab242a72b661acf670f907d55c">COLORMAP_NONE</a>, 
<br />
&#160;&#160;<a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550a02c92018e1199bf5574c97044214a808">COLORMAP_LINEAR</a>, 
<a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550a02b62792467077e77c5d4cdc8e9e1968">COLORMAP_DEFAULT</a> = COLORMAP_VIRIDIS
<br />
 }<tr class="memdesc:gab66101108d92e39f9ab9283c31da3550"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of built-in colormaps.  <a href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gab66101108d92e39f9ab9283c31da3550"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga1e36b770c903d6cc1891d2f9baae494a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550">cudaColormapType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colormap.html#ga1e36b770c903d6cc1891d2f9baae494a">cudaColormapFromStr</a> (const char *colormap)</td></tr>
<tr class="memdesc:ga1e36b770c903d6cc1891d2f9baae494a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse a cudaColormapType enum from a string.  <a href="#ga1e36b770c903d6cc1891d2f9baae494a">More...</a><br /></td></tr>
<tr class="separator:ga1e36b770c903d6cc1891d2f9baae494a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga34ec0b5e0d3b2bc54c64489af3d60972"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colormap.html#ga34ec0b5e0d3b2bc54c64489af3d60972">cudaColormapToStr</a> (<a class="el" href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550">cudaColormapType</a> colormap)</td></tr>
<tr class="memdesc:ga34ec0b5e0d3b2bc54c64489af3d60972"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a cudaColormapType enum to a string.  <a href="#ga34ec0b5e0d3b2bc54c64489af3d60972">More...</a><br /></td></tr>
<tr class="separator:ga34ec0b5e0d3b2bc54c64489af3d60972"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae8eff72be5ffd03693ad2a5152f71851"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colormap.html#gae8eff72be5ffd03693ad2a5152f71851">cudaColormap</a> (float *input, float *output, size_t width, size_t height, const float2 &amp;input_range=<a class="el" href="cudaMath_8h.html#a931119b28bbeb119817cd0128f422a08">make_float2</a>(0, 255), <a class="el" href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550">cudaColormapType</a> colormap=<a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550a02b62792467077e77c5d4cdc8e9e1968">COLORMAP_DEFAULT</a>, <a class="el" href="group__cudaFilter.html#ga66fe4a27e9fb59cd675d5deb12287195">cudaDataFormat</a> format=<a class="el" href="group__cudaFilter.html#gga66fe4a27e9fb59cd675d5deb12287195aa172a0e14adcf61d8fdc4df73a29dece">FORMAT_DEFAULT</a>, cudaStream_t stream=NULL)</td></tr>
<tr class="memdesc:gae8eff72be5ffd03693ad2a5152f71851"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply a colormap from an input image or vector field to RGBA (float4).  <a href="#gae8eff72be5ffd03693ad2a5152f71851">More...</a><br /></td></tr>
<tr class="separator:gae8eff72be5ffd03693ad2a5152f71851"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac5dcd093b9d07009adef499faea5f70b"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colormap.html#gac5dcd093b9d07009adef499faea5f70b">cudaColormap</a> (float *input, size_t input_width, size_t input_height, float *output, size_t output_width, size_t output_height, const float2 &amp;input_range=<a class="el" href="cudaMath_8h.html#a931119b28bbeb119817cd0128f422a08">make_float2</a>(0, 255), <a class="el" href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550">cudaColormapType</a> colormap=<a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550a02b62792467077e77c5d4cdc8e9e1968">COLORMAP_DEFAULT</a>, <a class="el" href="group__cudaFilter.html#ga25d4283643163befe99948d24cc53311">cudaFilterMode</a> filter=<a class="el" href="group__cudaFilter.html#gga25d4283643163befe99948d24cc53311ad8e5de74ec16a7e07145b7c18c885094">FILTER_LINEAR</a>, <a class="el" href="group__cudaFilter.html#ga66fe4a27e9fb59cd675d5deb12287195">cudaDataFormat</a> format=<a class="el" href="group__cudaFilter.html#gga66fe4a27e9fb59cd675d5deb12287195aa172a0e14adcf61d8fdc4df73a29dece">FORMAT_DEFAULT</a>, cudaStream_t stream=NULL)</td></tr>
<tr class="memdesc:gac5dcd093b9d07009adef499faea5f70b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply a colormap from an input image or vector field to RGBA (float4).  <a href="#gac5dcd093b9d07009adef499faea5f70b">More...</a><br /></td></tr>
<tr class="separator:gac5dcd093b9d07009adef499faea5f70b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga91c6bbab13dad41089d483d1eee23d08"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colormap.html#ga91c6bbab13dad41089d483d1eee23d08">cudaColormapInit</a> ()</td></tr>
<tr class="memdesc:ga91c6bbab13dad41089d483d1eee23d08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the colormap palettes by allocating them in CUDA memory.  <a href="#ga91c6bbab13dad41089d483d1eee23d08">More...</a><br /></td></tr>
<tr class="separator:ga91c6bbab13dad41089d483d1eee23d08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga635d08d990c024d0a36483490c0899a0"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colormap.html#ga635d08d990c024d0a36483490c0899a0">cudaColormapFree</a> ()</td></tr>
<tr class="memdesc:ga635d08d990c024d0a36483490c0899a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free the colormap palettes after they are done being used.  <a href="#ga635d08d990c024d0a36483490c0899a0">More...</a><br /></td></tr>
<tr class="separator:ga635d08d990c024d0a36483490c0899a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Defines various colormaps and color mapping functions. </p>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="gab66101108d92e39f9ab9283c31da3550"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab66101108d92e39f9ab9283c31da3550">&#9670;&nbsp;</a></span>cudaColormapType</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550">cudaColormapType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of built-in colormaps. </p>
<dl class="section see"><dt>See also</dt><dd>cudaColormapTypeFromStr() and cudaColormapTypeToStr() </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggab66101108d92e39f9ab9283c31da3550a66ba231e27e5c047361cd648353536cf"></a>COLORMAP_INFERNO&#160;</td><td class="fielddoc"><p>Inferno colormap, see <a href="http://bids.github.io/colormap/">http://bids.github.io/colormap/</a>. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggab66101108d92e39f9ab9283c31da3550adae05e96cd50fde7278b54a0bd0430af"></a>COLORMAP_MAGMA&#160;</td><td class="fielddoc"><p>Magma colormap, see <a href="http://bids.github.io/colormap/">http://bids.github.io/colormap/</a>. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggab66101108d92e39f9ab9283c31da3550a9d7e019081acf9030ca57169572a2c49"></a>COLORMAP_PARULA&#160;</td><td class="fielddoc"><p>Parula colormap, see <a href="https://www.mathworks.com/help/matlab/ref/parula.html">https://www.mathworks.com/help/matlab/ref/parula.html</a>. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggab66101108d92e39f9ab9283c31da3550ac6232462decac13bf8f019216088af4e"></a>COLORMAP_PLASMA&#160;</td><td class="fielddoc"><p>Plasma colormap, see <a href="http://bids.github.io/colormap/">http://bids.github.io/colormap/</a>. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggab66101108d92e39f9ab9283c31da3550adb42f46fa120d9ffaaa7326456b128ec"></a>COLORMAP_TURBO&#160;</td><td class="fielddoc"><p>Turbo colormap, see <a href="https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html">https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html</a>. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggab66101108d92e39f9ab9283c31da3550ab55ee67b1227b4ed30b505eb3a3cbe0c"></a>COLORMAP_VIRIDIS&#160;</td><td class="fielddoc"><p>Viridis colormap, see <a href="http://bids.github.io/colormap/">http://bids.github.io/colormap/</a>. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggab66101108d92e39f9ab9283c31da3550a9bcf1c7c8aa1713bd6d77dc88eecda51"></a>COLORMAP_FLOW&#160;</td><td class="fielddoc"><p>Optical flow x/y velocity (2D) </p>
</td></tr>
<tr><td class="fieldname"><a id="ggab66101108d92e39f9ab9283c31da3550ab4b116ab242a72b661acf670f907d55c"></a>COLORMAP_NONE&#160;</td><td class="fielddoc"><p>Pass-through (no remapping applied) </p>
</td></tr>
<tr><td class="fieldname"><a id="ggab66101108d92e39f9ab9283c31da3550a02c92018e1199bf5574c97044214a808"></a>COLORMAP_LINEAR&#160;</td><td class="fielddoc"><p>Linearly remap the values to [0,255]. </p>
<p>Default colormap (Viridis) </p>
</td></tr>
<tr><td class="fieldname"><a id="ggab66101108d92e39f9ab9283c31da3550a02b62792467077e77c5d4cdc8e9e1968"></a>COLORMAP_DEFAULT&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gae8eff72be5ffd03693ad2a5152f71851"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae8eff72be5ffd03693ad2a5152f71851">&#9670;&nbsp;</a></span>cudaColormap() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cudaError_t cudaColormap </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float2 &amp;&#160;</td>
          <td class="paramname"><em>input_range</em> = <code><a class="el" href="cudaMath_8h.html#a931119b28bbeb119817cd0128f422a08">make_float2</a>(0,&#160;255)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550">cudaColormapType</a>&#160;</td>
          <td class="paramname"><em>colormap</em> = <code><a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550a02b62792467077e77c5d4cdc8e9e1968">COLORMAP_DEFAULT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__cudaFilter.html#ga66fe4a27e9fb59cd675d5deb12287195">cudaDataFormat</a>&#160;</td>
          <td class="paramname"><em>format</em> = <code><a class="el" href="group__cudaFilter.html#gga66fe4a27e9fb59cd675d5deb12287195aa172a0e14adcf61d8fdc4df73a29dece">FORMAT_DEFAULT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cudaStream_t&#160;</td>
          <td class="paramname"><em>stream</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Apply a colormap from an input image or vector field to RGBA (float4). </p>
<p>If the input and output dimensions differ, this function will rescale the image using bilinear or nearest-point interpolation as set by the <code>filter</code> mode. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input_range</td><td>the minimum and maximum values of the input image. </td></tr>
    <tr><td class="paramname">colormap</td><td>the colormap to apply (</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550" title="Enumeration of built-in colormaps. ">cudaColormapType</a>) </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">format</td><td>layout of multi-channel input data (HWC or CHW). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gac5dcd093b9d07009adef499faea5f70b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac5dcd093b9d07009adef499faea5f70b">&#9670;&nbsp;</a></span>cudaColormap() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cudaError_t cudaColormap </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>input_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>input_height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>output_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>output_height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float2 &amp;&#160;</td>
          <td class="paramname"><em>input_range</em> = <code><a class="el" href="cudaMath_8h.html#a931119b28bbeb119817cd0128f422a08">make_float2</a>(0,&#160;255)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550">cudaColormapType</a>&#160;</td>
          <td class="paramname"><em>colormap</em> = <code><a class="el" href="group__colormap.html#ggab66101108d92e39f9ab9283c31da3550a02b62792467077e77c5d4cdc8e9e1968">COLORMAP_DEFAULT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__cudaFilter.html#ga25d4283643163befe99948d24cc53311">cudaFilterMode</a>&#160;</td>
          <td class="paramname"><em>filter</em> = <code><a class="el" href="group__cudaFilter.html#gga25d4283643163befe99948d24cc53311ad8e5de74ec16a7e07145b7c18c885094">FILTER_LINEAR</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__cudaFilter.html#ga66fe4a27e9fb59cd675d5deb12287195">cudaDataFormat</a>&#160;</td>
          <td class="paramname"><em>format</em> = <code><a class="el" href="group__cudaFilter.html#gga66fe4a27e9fb59cd675d5deb12287195aa172a0e14adcf61d8fdc4df73a29dece">FORMAT_DEFAULT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cudaStream_t&#160;</td>
          <td class="paramname"><em>stream</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Apply a colormap from an input image or vector field to RGBA (float4). </p>
<p>If the input and output dimensions differ, this function will rescale the image using bilinear or nearest-point interpolation as set by the <code>filter</code> mode. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input_range</td><td>the minimum and maximum values of the input image. </td></tr>
    <tr><td class="paramname">colormap</td><td>the colormap to apply (</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550" title="Enumeration of built-in colormaps. ">cudaColormapType</a>) </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the interpolation mode used for rescaling. </td></tr>
    <tr><td class="paramname">format</td><td>layout of multi-channel input data (HWC or CHW). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga635d08d990c024d0a36483490c0899a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga635d08d990c024d0a36483490c0899a0">&#9670;&nbsp;</a></span>cudaColormapFree()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cudaError_t cudaColormapFree </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Free the colormap palettes after they are done being used. </p>
<p>Only needs to be called if the other colormap functions were. </p>

</div>
</div>
<a id="ga1e36b770c903d6cc1891d2f9baae494a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1e36b770c903d6cc1891d2f9baae494a">&#9670;&nbsp;</a></span>cudaColormapFromStr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550">cudaColormapType</a> cudaColormapFromStr </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>colormap</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Parse a cudaColormapType enum from a string. </p>
<dl class="section return"><dt>Returns</dt><dd>The parsed cudaColormapType, or COLORMAP_DEFAULT on error. </dd></dl>

</div>
</div>
<a id="ga91c6bbab13dad41089d483d1eee23d08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga91c6bbab13dad41089d483d1eee23d08">&#9670;&nbsp;</a></span>cudaColormapInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cudaError_t cudaColormapInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize the colormap palettes by allocating them in CUDA memory. </p>
<dl class="section note"><dt>Note</dt><dd><a class="el" href="group__colormap.html#ga91c6bbab13dad41089d483d1eee23d08" title="Initialize the colormap palettes by allocating them in CUDA memory. ">cudaColormapInit()</a> is automatically called the first time that any colormap is used, so it needn't be explicitly called by the user unless they wish to do it at start-up. </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>cudaSuccess on success or if already initialized. </dd></dl>

</div>
</div>
<a id="ga34ec0b5e0d3b2bc54c64489af3d60972"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga34ec0b5e0d3b2bc54c64489af3d60972">&#9670;&nbsp;</a></span>cudaColormapToStr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* cudaColormapToStr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__colormap.html#gab66101108d92e39f9ab9283c31da3550">cudaColormapType</a>&#160;</td>
          <td class="paramname"><em>colormap</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert a cudaColormapType enum to a string. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Tue Jul 14 2020 21:59:34 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
